using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace CMS.Web.CompDenu
{
    public partial class AddXLDonThuMain : BaseUserControl
    {
        public string docID = "";
        public string CssTab1 = "inactive";
        public string CssTab2 = "inactive";
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Web.UI.Control ctrl = null;

            String action = Request.QueryString.Get("tab");
            String type = Request.QueryString.Get("type");
            docID = Request.QueryString.Get("objID");
            if (docID == null) docID = "";
            if (action == null) action = "";
            if (type == null) type = "grid";
            switch (action.ToUpper())
            {
                case "2":
                    CssTab2 = "active";
                    if (type.Equals("grid"))
                    {
                        ctrl = this.LoadControl("AddXLDonThuGrid.ascx");
                    }
                    else
                        ctrl = this.LoadControl("AddXLDonThu.ascx");

                    break;
                case "1":
                default:
                    CssTab1 = "active";
                    ctrl = this.LoadControl("AddDonThu.ascx");
                    break;
            }
            if (ctrl != null) plhContent.Controls.Add(ctrl);

        }
    }
}